package com.ruoyi.photo.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车辆图片对象 car_photo
 * 
 * @author 邓启正
 * @date 2025-04-07
 */
public class CarPhoto extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 图片id */
    private Long photoId;

    /** 车辆id */
    @Excel(name = "车辆id")
    private Long carId;

    /** 图片网址 */
    @Excel(name = "图片网址")
    private String photoUrl;

    /** 是否主图 */
    @Excel(name = "是否主图")
    private Integer isMain;

    /** 排序方式 */
    @Excel(name = "排序方式")
    private Long sortOrder;

    public void setPhotoId(Long photoId) 
    {
        this.photoId = photoId;
    }

    public Long getPhotoId() 
    {
        return photoId;
    }

    public void setCarId(Long carId) 
    {
        this.carId = carId;
    }

    public Long getCarId() 
    {
        return carId;
    }

    public void setPhotoUrl(String photoUrl) 
    {
        this.photoUrl = photoUrl;
    }

    public String getPhotoUrl() 
    {
        return photoUrl;
    }

    public void setIsMain(Integer isMain) 
    {
        this.isMain = isMain;
    }

    public Integer getIsMain() 
    {
        return isMain;
    }

    public void setSortOrder(Long sortOrder) 
    {
        this.sortOrder = sortOrder;
    }

    public Long getSortOrder() 
    {
        return sortOrder;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("photoId", getPhotoId())
            .append("carId", getCarId())
            .append("photoUrl", getPhotoUrl())
            .append("isMain", getIsMain())
            .append("sortOrder", getSortOrder())
            .append("createTime", getCreateTime())
            .toString();
    }
}
